package com.example.myBatis.controller;

import com.example.myBatis.mapper.UserInfo;
import com.example.myBatis.mapper.UserInfoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
@RestController
public class UerInfoController {
 @Autowired
    private UserInfoMapper userInfoMapper;
   @RequestMapping("/selectAll")
    public List<UserInfo> selectAll(){
       return userInfoMapper.selectAll();
   }
}
